<?php
	if(file_exists('config.inc.php')) {
		include('config.inc.php');
	} else {
		include('../config.inc.php');
	}
	include_once('functions.php');	
	include_once('db.php');
	
	$db = db::getInstance();
	$db->init($dbuser, $dbpass, $dbhost, $dbname);
	$db->setPrefix($dbprefix);
?>